package com.zl.service;

import com.zl.domain.Query;
import com.zl.util.Page;

import java.util.List;
import java.util.Map;

public interface BaseService<T> {

    public Page<Map<String, Object>> page(Query query);

    public int insert(T model);

    public List<T> selectByModel(T model);

    public int delete(T model);

    public int update(T model);

    public int count(T model);

    public int deleteByIds(List<Integer> ids, T model);

    public int updateByIds(List<Integer> ids, T model);

    public List<T> findAll(T model);

    public List<T> findAll();

    public T findByModel(T model);

}
